home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / memory / ramtest.zip / RAMTEST.DOC < prev    next >
Text File  |  1986-04-01  |  13KB  |  380 lines

  1.  
  2.  
  3.  
  4.                                   RAMTEST                       Page 1
  5.  
  6.  
  7.                                   WARNING
  8.                                   -------
  9.  
  10.      Executing  this  program WILL destroy the contents of memory, in-
  11.      cluding RAM disks!
  12.  
  13.  
  14.      Now that you've been warned, I think you will find  this  program
  15.      useful,  not  only  in identifying an existing fault, but also as
  16.      part of a periodic maintainence program. This  program  has  been
  17.      developed  as an exhaustive test of an IBM PC's system RAM. It is
  18.      much more comprehensive than the PC Power On Self Test (POST) and
  19.      delivers diagnostic messages which are much easier to understand.
  20.  
  21.  
  22.      There are two different versions of the test. RAMTEST.COM is  the
  23.      test  which  should be used with the IBM PC and compatibles. Note
  24.      that it requires a fair amount of hardware compatibility to  work
  25.      properly.  Users  of  computers  which  do not make use of parity
  26.      checked memory (such as the Eagle  PC)  or  who  experience  dif-
  27.      ficulty  during PASS 2 of the test should install the patch given
  28.      in the Hardware Requirements section.
  29.  
  30.      RAMTESTA.COM is the version to be  used  on  the  IBM  PCAT.  The
  31.      documentation  for  both versions is identical. For more informa-
  32.      tion on the required hardware compatibility, see page 3  of  this
  33.      document.
  34.  
  35.      To start the test, just type RAMTEST at the DOS prompt. There are
  36.      no additional parameters.
  37.  
  38.      This test is best run from a floppy disk which has been formatted
  39.      using  the  /S  option and contains no other RAM-based utilities.
  40.      Some of the commonly available memory-resident utilities (for ex-
  41.      ample, SideKick from BORLAND) 'take command' of  the  system  and
  42.      will cause RAMTEST to crash.
  43.  
  44.      RAMTEST  functions  in several distinct phases. After signing-on,
  45.      RAMTEST starts searching for the top of contiguous  memory.  This
  46.      search  is  performed  by examining RAM and not by consulting the
  47.      system configuration switches. Once the top of memory  is  found,
  48.      the  actual testing portion of the program is relocated and test-
  49.      ing begins.
  50.  
  51.      RAM is tested beginning with address 0:500 and  continues  up  to
  52.      but  not including the top 32k of the contiguous RAM below screen
  53.      memory. These limits were chosen for the  following  reasons.  1)
  54.      BIOS  uses RAM below 0:500 for scratch area and RAMTEST uses BIOS
  55.      exclusively for screen I/O. 2) The testing program needs a  place
  56.      to live undisturbed.
  57.  
  58.      RAM  is  tested  in 32k blocks. The pattern for the test is taken
  59.      from the BIOS ROMs. Randomness is added by use of iteration count
  60.      to modify the data. During PASS 1, each RAM location is  modified
  61.      and  then  verified.  This  insures that each location can be ac-
  62.      curately written to and read from. During PASS 2,  each  location
  63.  
  64.  
  65.                 Copyright (c) 1986  Digital Mechanics, Inc.           
  66.  
  67.  
  68.  
  69.  
  70.                                   RAMTEST                       Page 2
  71.  
  72.  
  73.      is  re-read  and  compared  to it's reference byte in ROM and the
  74.      parity bit is checked. This part of the  test  insures  that  the
  75.      parity  generating  and  checking  circuitry  is functioning cor-
  76.      rectly, that the address decoding is working  properly  and  that
  77.      there are no locations in RAM shorted to other locations.
  78.  
  79.      Should  no  errors occur during the two passes, RAMTEST announces
  80.      the successful completion of the test and prompts you to turn off
  81.      the computer to stop the test. If not stopped,  however,  RAMTEST
  82.      will  start  over,  using  a different set of patterns each time.
  83.      Since some memory errors do not show  up  until  after  hours  of
  84.      operating  time,  if you're trying to track down a failure, it is
  85.      suggested that you let RAMTEST run awhile, perhaps overnight.
  86.  
  87.      Should an error occur, RAMTEST stops immediately, displays a mes-
  88.      sage identifying the error, and halts. Note that the only way  to
  89.      exit  this condition is to turn the computer off. A typical error
  90.      message is:
  91.  
  92.  
  93.           Memory contents failure.
  94.           Address = 5000:0000
  95.           Data is: 1B      Data should be: 1F
  96.  
  97.           Turn power off, wait 5 seconds, and turn power back on.
  98.  
  99.  
  100.      The above example shows that the failure occured on an  expansion
  101.      board  (System  memory extends to 0:FFFF on 64k motherboards, and
  102.      to 3000:FFFF on 256k motherboards. The presence of 4116 RAM chips
  103.      indicates a 64k motherboard.). It also shows that  bit  1  was  0
  104.      when  it  should have been 1. In cases like this, the RAM chip in
  105.      the bit 1 position is frequently at fault. The RAM chips are  the
  106.      most delicate components in the memory system, and the easiest to
  107.      test for defects. This is because the RAM chips are socketed (ex-
  108.      cept  for the first 16k or 64k) and the rest of the chips such as
  109.      address decoding and data buffers are rarely, if ever, socketed.
  110.  
  111.      The last two pages of this document diagram the location  of  the
  112.      RAM  chips  on  the motherboard for both 64k systems and the 256k
  113.      systems. Refer to the documentation that came  with  your  add-in
  114.      memory board for instructions on locating and replacing RAM chips
  115.      that  make up the memory above 1000:0 (64k motherboard) or 4000:0
  116.      (256k motherboard).
  117.  
  118.      The failure codes which are analyzed at  the  top  of  each  page
  119.      refer  to  the  code which the PC prints when an error is encoun-
  120.      tered during POST. If this occurs, the code will be printed,  the
  121.      speaker  will  beep,  the  screen will go blank, and the computer
  122.      will have to be turned off. This will all happen in the  span  of
  123.      about one second, so watch carefully to see the error code.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.                 Copyright (c) 1986  Digital Mechanics, Inc.           
  132.  
  133.  
  134.  
  135.  
  136.                                   RAMTEST                       Page 3
  137.  
  138.  
  139.      RAMTEST  is provided at no charge to the user. Feel free to share
  140.      it with your friends, but please do not give  away  altered  ver-
  141.      sions  or  versions  which have had the copyright notice removed.
  142.      The essence of 'user-supported' software is to  provide  personal
  143.      computer users with quality software without high prices, and yet
  144.      to  provide  incentive for programmers to continue to develop new
  145.      products. If you find this program useful,  a  contribution  ($10
  146.      suggested)  would be greatly appreciated. Any suggestions or com-
  147.      ments you may have are also welcome.
  148.  
  149.  
  150.                                  Jim Weisz
  151.                           Digital Mechanics, Inc.
  152.                                P.O. Box 1356
  153.                             Lombard, Il.  60148
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.                            HARDWARE REQUIREMENTS
  165.  
  166.  
  167.      PC        NMI Enable/Disable port = 0A0H
  168.                RAM parity check control port = 61H  (bits 4 & 5   00xx0000)
  169.                Parity status port = 62H  (bits 7 & 8   xx000000)
  170.  
  171.      Note:  Users of the Eagle PC and other compatible computers which do not
  172.             use parity memory need to make the following patch using DEBUG.
  173.             The patch disables parity checking which causes problems on the
  174.             Eagle.  (Maybe the Sperry PC also)
  175.  
  176.                       A>DEBUG RAMTEST.COM
  177.                       -F 1F2 1F9 90
  178.                       -F 21A 222 90
  179.                       -W
  180.                       Writing 06A4 bytes
  181.                       -Q
  182.  
  183.                       A>
  184.  
  185.  
  186.  
  187.      PCAT      NMI Enable/Disable port = 70H
  188.                RAM parity check control port = 61H  (bits 2 & 3   0000xx00)
  189.                Parity status port = 61H  (bits 7 & 8   xx000000)
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.                 Copyright (c) 1986  Digital Mechanics, Inc.           
  198.  
  199.  
  200.  
  201.  
  202.                              RAMTEST                       Page 4
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215. MEMORY FAILURE CODE ANALYSIS:  64k motherboard
  216.  
  217.  
  218.  
  219. SAMPLE FAILURE CODE:    4402 201